export default{
	init: data =>{
		dd.config({
			agentId: data.agentId,
			corpId: data.corpId,
			timeStamp: data.timeStamp,
			nonceStr: data.nonceStr,
			signature: data.signature,
			type:0,
			jsApiList: [ 'runtime.info',
			'biz.contact.choose',
			'device.notification.showPreloader',
			'device.notification.hidePreloader',
			        'device.notification.confirm',
			'device.notification.alert',
			        'device.notification.prompt',
			'biz.ding.post',
			        'biz.util.openLink',
			'biz.user.get' ]
		});
	},
	ready(callBack){
		console.log('dd ready before');

		dd.ready(function(){
			callBack()
		})
		dd.error(function(err) {
			console.log('dd error: ' + JSON.stringify(err));
		});

	}
}